<?php


// 9/5/2009: immanuel192 rewrite this class

class imagegallerymodule_config {
	function form($object) {
		if (!defined('SYS_FORMS')) require_once(BASE.'subsystems/forms.php');
		exponent_forms_initialize();
		
		$form = new form();
		if (!isset($object->id)) {
		   $object->perpage = 15;
		} else {
			$form->meta('id',$object->id);
		}
	
		$form->register(null,'',new htmlcontrol('<span style="color: red">Nothing for your to configure here</span><br /><br />'));	
		$form->register('perpage',"Item per page",new textcontrol($object->perpage));
    //$form->register('show_pic_desc','Show picture descriptions',new checkboxcontrol($object->show_pic_desc,true));
		$form->register('submit','',new buttongroupcontrol('Save','','Cancel'));
		return $form;
	}
	
	function update($values,$object) {
		//$object->multiple_galleries = (isset($values['multiple_galleries']) ? 1 : 0);;
		//$object->show_pic_desc = (isset($values['show_pic_desc']) ? 1 : 0);;
		$object->perpage = intval($values['perpage']);
		return $object;
	}
}

?>
